<template>
  <div class="dashboard-container">
    <h1>Welcome to your website</h1>
    <h2>admin</h2>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import { getproperties } from '@/api/house'
import { getmap } from '@/api/map'
export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  },
  data() {
    return {
      options: [],
      map: {
        key: '557f70e1ca4b418b37e4b2862ebc8a09',
        subdistrict: '2',
        keywords: '北京'
      }
    }
  },
  async created() {
    await getproperties()
    const res = await getmap(this.map)
    console.log(32, res.data.districts)
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
